package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 工单对象业务对象
 *
 * @author ruoyi
 * @date 2024-04-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HnWorkOrderBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class })
    private String name;

    /**
     * 部门id
     */
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class })
    private Long deptId;

    /**
     * 工单状态
     */
    private Long status;

    /**
     * 工单描述
     */
    private String info;

    /**
     * 当前处理人
     */
    @NotNull(message = "当前处理人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long assignedUserId;

    /**
     * 最终解决人
     */
    @NotNull(message = "最终解决人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long troubleshootUserId;

    /**
     * 描述资源图片组
     */
    @NotBlank(message = "描述资源图片组不能为空", groups = { AddGroup.class })
    private String ossIds;

    /**
     * 处理完成时间
     */
    private Date completionTime;

    /**
     * 最终耗时
     */
    private String elapsedTime;

}
